﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using AutoMapper;
using BCDto.TMS.MallInterface;
using BCEntity.TMS.MallInterface.MallOrder;
using BCEntity.TMS.MallInterface.MallOrderAddress;
using BCEntity.TMS.MallInterface.MallOrderGoods;

namespace BCService.MapperProfiles.TMS.MallOrder
{
    public class MallOrderProfile : Profile
    {
        public MallOrderProfile()
        { 
            CreateMap<MallOrderDto, MallOrderEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter(); 
            CreateMap<MallOrderEntity, MallOrderDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();

            CreateMap<MallOrderAddressDto, MallOrderAddressEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<MallOrderAddressEntity, MallOrderAddressDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();

            CreateMap<MallOrderGoodsDto, MallOrderGoodsEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<MallOrderGoodsEntity,MallOrderGoodsDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();

        }
    }
}
